package org.objectrproject.repository;

import java.util.ArrayList;
import java.util.List;



public class InMemoryGenericDao<T> implements GenericDao<T> {

    private List<T> objectList;

    public InMemoryGenericDao() {
    	objectList = new ArrayList<T>();
    }
    
    public InMemoryGenericDao(List<T> objectList) {
        this.objectList = objectList;
    }
	
	public List<T> getObjectList() {
		
		return objectList;
	}

	public void saveObject(T object) {
	
		objectList.add(object);
		
	}

	public void setObjectList(List<T> objectList) {
		this.objectList = objectList;
	}
	

}
